export const throttle = (fn, timeOut) => {
    let timer = null
    return () => {
        console.log(timer);
        if (timer) {
            return
        }
        timer = setTimeout(() => {
            fn()
            timer = null
        }, timeOut)
    }
}